# Contributor: Anjandev Momi <anjan@momi.ca>
# Maintainer: Anjandev Momi <anjan@momi.ca>
pkgname=py3-flask-cors
pkgver=3.0.10
pkgrel=1
pkgdesc="Cross Origin Resource Sharing (CORS) support for Flask"
url="https://github.com/corydolphin/flask-cors"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-flask"
source="$pkgname-$pkgver.tar.gz::https://github.com/corydolphin/flask-cors/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/flask-cors-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
4471e94aea92700185a6fca37f01d61b9b966754f206eb6211813fb8c82fc0d219597e3df80e9d80b68663931ec561ca209fe23afa0142345fb75beacf3adc4e  py3-flask-cors-3.0.10.tar.gz
"
